package net.xju3_4.entity;

import java.io.Serializable;

public class MerchantApplicationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;             // 申请ID
    private String username;        // 登录用户名
    private String password;        // 密码
    private String merchantName;    // 商家名称
    private String contactPerson;   // 联系人
    private String contactPhone;    // 联系电话
    private String address;         // 商家地址
    private String businessLicense; // 营业执照URL
    private String logoUrl;         // 商家Logo
    private String description;     // 商家描述
    private Integer status;         // 申请状态（0-待审核，1-已通过，2-已拒绝）

    // 无参构造函数
    public MerchantApplicationEntity() {}

    // 有参构造函数
    public MerchantApplicationEntity(Integer id, String username, String password, String merchantName,
                                     String contactPerson, String contactPhone, String address,
                                     String businessLicense, String logoUrl, String description, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.merchantName = merchantName;
        this.contactPerson = contactPerson;
        this.contactPhone = contactPhone;
        this.address = address;
        this.businessLicense = businessLicense;
        this.logoUrl = logoUrl;
        this.description = description;
        this.status = status;
    }

    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "MerchantApplication{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", merchantName='" + merchantName + '\'' +
                ", contactPerson='" + contactPerson + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", address='" + address + '\'' +
                ", businessLicense='" + businessLicense + '\'' +
                ", logoUrl='" + logoUrl + '\'' +
                ", description='" + description + '\'' +
                ", status=" + status +
                '}';
    }
}
